package patterns.itetator.core;

public class MyCollection implements Collection {

	int datas[] = {1,2,3,4,5};
	
	@Override
	public Iterator iterator() {
		return new MyIterator(this);
	}

	@Override
	public Object get(int i) {
		return datas[i];
	}

	@Override
	public int size() {
		return datas.length;
	}

}
